import { createApp } from 'vue'
import 'normalize.css'  //重置浏览器默认样式
import './style.css'
import App from './App.vue'  //根组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue' //引入图标
import router from './router/index.js' //引入路由对象

// createApp(App).mount('#app')
const app =createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router) //注入路由

app.mount('#app')
